from impala.dbapi import connect

def create_conn():
    return connect(host='master', port=10000,auth_mechanism='NOSASL')

def show_db(conn):
    cursor = conn.cursor()
    cursor.execute('SHOW databases')
    results = cursor.fetchall()
    print(results)


if __name__ == '__main__':
    conn = create_conn()
    show_db(conn)